#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int n = 0;
	int i = 0;
	int m = 0;
	double sum = 0;
	double ave = 0;
	int count1 = 0;
	int count2 = 0;
	while (scanf("%d", &n) == 1)
	{
		for (i = 0; i < n; i++)
		{
			scanf("%d", &m);
			if (m > 0)
			{
				sum += m;
				count2++;
			}
			if (m < 0)
			{
				count1++;
			}
		}
		ave = sum / count2;
		printf("%d %.1lf\n", count1, ave);
	}
	return 0;
}
